import { post } from './axios'

// 添加商品
export const addCommodity = data => {
    return post('/commodity/add', data)
}

// 更新商品
export const updateCommodity = data => {
    return post('/commodity/update', data)
}

// 编辑商品
export const editCommodity = data => {
    return post('/commodity/edit', data)
}

// 删除商品
export const deleteCommodity = data => {
    return post('/commodity/delete', data)
}

// 分页获取商品列表
export const listCommodityByPage = data => {
    return post('/commodity/list', data)
}
